package Reflect.test2;

public class doSome {
    public static void main(String[] args) {
        doSome("a","b","c");
    }
    /*
    变长参数只能是方法的最后一个参数，且一个方法参数只有一个变长参数
    变长参数是编译器认可的，编译器在编译时会将变长参数编译为数组
    String...text = "a","n","c";
    String[] test = new String[]{...}
     */

    public static void doSome(String...test){
        System.out.println(test);
    }
}
